package com.local.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

@Entity
@Table(name = "local_coupon")
public class LocalCoupon {
    @NotEmpty
    @Length(min=1,max=32)
    @Column(name = "coupon_uuid")
    private String couponUuid;

    @Column(name = "coupon_price")
    private Double couponPrice;

    @Column(name = "bill_uuid")
    private String billUuid;

    @Column(name = "pay_time")
    private Date payTime;

    @Column(name = "car_no")
    private String carNo;

    @Column(name = "user_id")
    private String userId;

    @Column(name = "user_name")
    private String userName;
    
    //停车场组织ID   获取云停车场信息
    private String exchangeUuid;
    
    

    public String getExchangeUuid()
	{
		return exchangeUuid;
	}

	public void setExchangeUuid(String exchangeUuid)
	{
		this.exchangeUuid = exchangeUuid;
	}

	public String getCouponUuid() {
        return couponUuid;
    }

    public void setCouponUuid(String couponUuid) {
        this.couponUuid = couponUuid == null ? null : couponUuid.trim();
    }

    public Double getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Double couponPrice) {
        this.couponPrice = couponPrice;
    }

    public String getBillUuid() {
        return billUuid;
    }

    public void setBillUuid(String billUuid) {
        this.billUuid = billUuid == null ? null : billUuid.trim();
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getCarNo() {
        return carNo;
    }

    public void setCarNo(String carNo) {
        this.carNo = carNo == null ? null : carNo.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }
}